package com.boilerCloud.service.device.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boilerCloud.dao.device.ModeDao;
import com.boilerCloud.dto.HzlqswPage;
import com.boilerCloud.dto.device.ModelInfo;
import com.boilerCloud.dto.device.ModelType;
import com.boilerCloud.service.device.IModelService;
@Service
public class ModelServiceImpl implements IModelService {

	@Resource
	private ModeDao dao;
	@Override
	public void del(int id)throws Exception {
		dao.del(id);
		
	}

	@Override
	public void save(ModelInfo model) throws Exception{
		dao.save(model);
		
	}

	@Override
	public void edit(ModelInfo model)throws Exception {
		dao.edit(model);
		
	}

	@Override
	public void qryList(ModelInfo model, HzlqswPage<ModelInfo> page)throws Exception {
		dao.qryList(model,page);
		
	}

	@Override
	public void qryModelTypeList(ModelType model, HzlqswPage<ModelType> page) throws Exception{
		dao.qryModelTypeList(model,page);
		
	}

	@Override
	public void editModelType(ModelType model)throws Exception {
		dao.editModelType(model);
		
	}

	@Override
	public void addModelType(ModelType model)throws Exception {
		dao.addModelType(model);
		
	}

	@Override
	public void delModelType(int id) throws Exception{
		dao.delModelType(id);
		
	}

	@Override
	public List<ModelType> getModelTypeList(ModelType object) throws Exception{
		// TODO Auto-generated method stub
		return dao.getModelTypeList(object);
	}

	@Override
	public List<ModelInfo> getModelList(ModelInfo object) throws Exception{
		// TODO Auto-generated method stub
		return dao.getModelList(object);
	}

	@Override
	public ModelInfo getModelInfo(int id) throws Exception {
		// TODO Auto-generated method stub
		return dao.getModelInfo(id);
	}

	@Override
	public ModelType getModelType(int id) throws Exception {
		// TODO Auto-generated method stub
		return dao.getModelType(id);
	}

	

}
